import { contextBridge } from 'electron'
import { electronAPI } from '@electron-toolkit/preload'
import { ipc } from '@ipc/IpcRenderer'
import { webUtils } from 'electron/renderer'

contextBridge.exposeInMainWorld('electron', electronAPI)
contextBridge.exposeInMainWorld('ipc', ipc)
contextBridge.exposeInMainWorld('getPathForFile', (file: File) => webUtils.getPathForFile(file))
